import computed from "./computed.js";
import ref from "./ref.js";
import reactive from "./reactive.js";
import watch from "./watch.js";
const state = ref(0);
const state2 = reactive({ a: 1, b: 2 });

const state3 = computed({
  get: () => {
    const res = state.value + state2.a;
    return res;
  },
});

watch(
  () => state.value,
  (newVal, oldVal) => {
    console.log(`watch has Trigger!!!!`);
    console.log(`newVal is`, newVal);
    console.log(`oldVal is`, oldVal);
  }
);

state.value = 1;
